@prefix-cls: ~"@{namespace}-order";

.text-wrap {
  word-wrap:break-word;
  word-break:normal;
}

.@{prefix-cls} {

  .ant-table-expanded-row {
    background: #ffffff !important;
  }

  .table-wrap {
    background-color: #ffffff;
    border-radius: 5px;
    padding: 10px;
  }

  .ant-table-row-level-0:has(.order-code){
    background: #f5f7fa;
  }

  .order-code .state-text {
    // position: absolute;
    padding: 2px 4px;
    border-radius: 4px;
    background-color: #808080;
    color: #ffffff;
  }

  .order-code .state-text-red {
    background: red !important;
  }

  .order-code .state-text-blue {
    background: #2db7f5 !important;
  }
  
  /*表格中的商品展示*/
  .table-wrap .product-info {
    display: flex;
  }

  .table-wrap .product-info .pic {
    position: relative;
    width: 60px;
    height: 60px;
    background: #F0F0EE;

    image {
      width: 60px;
      height: 60px;
    }
  }

  .table-wrap .product-info .info {
    flex: 1;
    padding-left: 10px;
    overflow: hidden;
    line-height: 20px;
  }

  .table-wrap .product-info .name {
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
  }

  .table-wrap .product-info .price {
    color: rgb(255, 51, 0);
  }

  .table-wrap .product-info .pic img {
    position: absolute;
    top: 50%;
    left: 50%;
    -webkit-transform: translate(-50%, -50%);
    transform: translate(-50%, -50%);
    max-height: 100%;
    max-width: 100%;
  }
  .table-btn-column{
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
  }
  .table-btn-column .el-button{
    padding: 3px 0;
    margin-left: 0 !important;
  }
}